Skip to main content
Version: 5.0.x {nightly}

Power supply variables

All variables are related to the power supply and energy.

info

Next variables are located in the folder /driver.

powerf [W]

Actual power going from power supply.

energy [J]

Energy transferred since last reboot. (The negative energy (e.g. regeneration) decreases the value. On the other hand, the accumulated absolute value can be found in /permanents/)

info

Next variables are located in the folder /driver/supply.

voltage [V]

Battery (input supply) voltage.

current [A]

Battery (input supply) current.

info
  • Positive current -> current from battery to motor (motoring)
  • Negative current -> current from motor to battery (generating)

currentf [A]

Filtered battery (input supply) current.

tip

Value is filtered using the filter constants /driver/Kf and /driver/Kr.

cap [mAh]

Coloumb counter since controller reboot. During regeneration, cap value is being decreased.

Precharge settings

Typical precharge sequence :

  • Connect the battery + supply to the KEY pin of your controller
  • Power the controller on -> typically connect the POWER pin to KEY pin
  • Controller will use the voltage source at KEY pin to precharge internal capacitors until pchg1 voltage is reached or pchgtim time elapses
  • Controller will perform the internal selftest
  • If everything is ok, main power contactor is closed
    • Contactor settings can be adjusted in /common/contactor

Note that not all the controllers are precharge-equipped. This feature requires a hardware support. Usually, the 'e' letter in the assembly variant is required. By default, only SL and SX controllers are equiped with precharge. For more info, please check the corresponding datasheet.

pchg1 [V]

Precharge voltage the controller tries to reach at initialization after booting. If set to zero, no actual precharge is issued and the pre-init waits for a proper init conditions to be met instead.

pchg2 [V]

Precharge voltage the controller tries to reach at manually requested initialization (e.g. using reinit command, or using driver CAN API.). If set to zero, no actual precharge is issued and only pchgtim time is checked in the pre-init.

pchgtim [ms]

The maximum duration of the precharge phase (absolute value). Setting the value to zero disables the timeout and the pre-init might wait indefinitely. A negative value disables the automatic initialization of the driver after booting.